package org.phoenix.mall.admin.mapper;

import org.apache.ibatis.annotations.Param;
import org.phoenix.mall.admin.base.mapper.BaseMapper;
import org.phoenix.mall.admin.common.pojo.vo.CategoryVO;
import org.phoenix.mall.admin.pojo.Category;

import java.util.List;

public interface CategoryMapper extends BaseMapper<Category> {

    public List<CategoryVO> queryCategoryListByPage(@Param("level") Integer level);

    public List<CategoryVO> queryTopCategoryListByPid(@Param("pid") Integer pid);

    public List<CategoryVO> queryAllChildCategoryListByPid(@Param("pid") Integer pid);

    public List<CategoryVO> query2ChildCategoryListByPid(@Param("pid") Integer pid);
}